package model

import "gorm.io/gorm"

type Shopping struct {
	gorm.Model
	Name    string `gorm:"type:varchar(30)"`
	Num     int    `gorm:"type:int"`
	Content string `gorm:"type:varchar(30)"`
	Address string `gorm:"type:varchar(50)"`
}
type ShopClass struct {
	gorm.Model
	Sid int `gorm:"type:int"`
	Cid int `gorm:"type:int"`
}
type UserShop struct {
	gorm.Model
	Uid int `gorm:"type:int"`
	Sid int `gorm:"type:int"`
}
type Class struct {
	gorm.Model
	Name string `gorm:"type:varchar(30)"`
}
type User struct {
	gorm.Model
	Username string `gorm:"type:varchar(30)"`
	Password string `gorm:"type:varchar(30)"`
}
